<?php
$catid = empty($_GET['catid']) ? 0 : intval($_GET['catid']);

// 子分类
$vars['cats'] = $__f_goods_cats['category_tree'][$catid];
?>